-- Prefan Access Controller
-- Server Access

function PAC.FindPlayer( ply )

	local ply = string.lower( ply )
	
	for k,v in pairs( player.GetAll() ) do
	
		local nick = string.lower( v:Nick() )
	
		if string.find( nick, ply ) then
		
			return v 
			
		end
		
	end
	
	return -1
	
end
